Optimal. Leaf size=84 \[ \frac{121 (21193-12828 x)}{33856 \left (2 x^2-x+3\right )}-\frac{1331 (17-45 x)}{1472 \left (2 x^2-x+3\right )^2}+\frac{825}{32} \log \left (2 x^2-x+3\right )+\frac{125 x}{8}+\frac{165099 \tan ^{-1}\left (\frac{1-4 x}{\sqrt{23}}\right )}{8464 \sqrt{23}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0865576, antiderivative size = 84, normalized size of antiderivative = 1., number of steps used = 8, number of rules used = 6, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.24, Rules used = {1660, 1657, 634, 618, 204, 628} \[ \frac{121 (21193-12828 x)}{33856 \left (2 x^2-x+3\right )}-\frac{1331 (17-45 x)}{1472 \left (2 x^2-x+3\right )^2}+\frac{825}{32} \log \left (2 x^2-x+3\right )+\frac{125 x}{8}+\frac{165099 \tan ^{-1}\left (\frac{1-4 x}{\sqrt{23}}\right )}{8464 \sqrt{23}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1660
Rule 1657
Rule 634
Rule 618
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{\left (2+3 x+5 x^2\right )^3}{\left (3-x+2 x^2\right )^3} \, dx &=-\frac{1331 (17-45 x)}{1472 \left (3-x+2 x^2\right )^2}+\frac{1}{46} \int \frac{-\frac{40885}{32}-\frac{19067 x}{8}+\frac{22195 x^2}{4}+\frac{13225 x^3}{2}+2875 x^4}{\left (3-x+2 x^2\right )^2} \, dx\\ &=-\frac{1331 (17-45 x)}{1472 \left (3-x+2 x^2\right )^2}+\frac{121 (21193-12828 x)}{33856 \left (3-x+2 x^2\right )}+\frac{\int \frac{\frac{23997}{2}+92575 x+\frac{66125 x^2}{2}}{3-x+2 x^2} \, dx}{1058}\\ &=-\frac{1331 (17-45 x)}{1472 \left (3-x+2 x^2\right )^2}+\frac{121 (21193-12828 x)}{33856 \left (3-x+2 x^2\right )}+\frac{\int \left (\frac{66125}{4}-\frac{33 (4557-13225 x)}{4 \left (3-x+2 x^2\right )}\right ) \, dx}{1058}\\ &=\frac{125 x}{8}-\frac{1331 (17-45 x)}{1472 \left (3-x+2 x^2\right )^2}+\frac{121 (21193-12828 x)}{33856 \left (3-x+2 x^2\right )}-\frac{33 \int \frac{4557-13225 x}{3-x+2 x^2} \, dx}{4232}\\ &=\frac{125 x}{8}-\frac{1331 (17-45 x)}{1472 \left (3-x+2 x^2\right )^2}+\frac{121 (21193-12828 x)}{33856 \left (3-x+2 x^2\right )}-\frac{165099 \int \frac{1}{3-x+2 x^2} \, dx}{16928}+\frac{825}{32} \int \frac{-1+4 x}{3-x+2 x^2} \, dx\\ &=\frac{125 x}{8}-\frac{1331 (17-45 x)}{1472 \left (3-x+2 x^2\right )^2}+\frac{121 (21193-12828 x)}{33856 \left (3-x+2 x^2\right )}+\frac{825}{32} \log \left (3-x+2 x^2\right )+\frac{165099 \operatorname{Subst}\left (\int \frac{1}{-23-x^2} \, dx,x,-1+4 x\right )}{8464}\\ &=\frac{125 x}{8}-\frac{1331 (17-45 x)}{1472 \left (3-x+2 x^2\right )^2}+\frac{121 (21193-12828 x)}{33856 \left (3-x+2 x^2\right )}+\frac{165099 \tan ^{-1}\left (\frac{1-4 x}{\sqrt{23}}\right )}{8464 \sqrt{23}}+\frac{825}{32} \log \left (3-x+2 x^2\right )\\ \end{align*}
Mathematica [A] time = 0.0362954, size = 84, normalized size = 1. \[ -\frac{121 (12828 x-21193)}{33856 \left (2 x^2-x+3\right )}+\frac{1331 (45 x-17)}{1472 \left (2 x^2-x+3\right )^2}+\frac{825}{32} \log \left (2 x^2-x+3\right )+\frac{125 x}{8}-\frac{165099 \tan ^{-1}\left (\frac{4 x-1}{\sqrt{23}}\right )}{8464 \sqrt{23}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.05, size = 63, normalized size = 0.8 \begin{align*}{\frac{125\,x}{8}}+{\frac{11}{2\, \left ( 2\,{x}^{2}-x+3 \right ) ^{2}} \left ( -{\frac{35277\,{x}^{3}}{2116}}+{\frac{303677\,{x}^{2}}{8464}}-{\frac{132803\,x}{4232}}+{\frac{326029}{8464}} \right ) }+{\frac{825\,\ln \left ( 2\,{x}^{2}-x+3 \right ) }{32}}-{\frac{165099\,\sqrt{23}}{194672}\arctan \left ({\frac{ \left ( -1+4\,x \right ) \sqrt{23}}{23}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.45442, size = 97, normalized size = 1.15 \begin{align*} -\frac{165099}{194672} \, \sqrt{23} \arctan \left (\frac{1}{23} \, \sqrt{23}{\left (4 \, x - 1\right )}\right ) + \frac{125}{8} \, x - \frac{121 \,{\left (12828 \, x^{3} - 27607 \, x^{2} + 24146 \, x - 29639\right )}}{16928 \,{\left (4 \, x^{4} - 4 \, x^{3} + 13 \, x^{2} - 6 \, x + 9\right )}} + \frac{825}{32} \, \log \left (2 \, x^{2} - x + 3\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 0.985266, size = 377, normalized size = 4.49 \begin{align*} \frac{24334000 \, x^{5} - 24334000 \, x^{4} + 43385176 \, x^{3} - 330198 \, \sqrt{23}{\left (4 \, x^{4} - 4 \, x^{3} + 13 \, x^{2} - 6 \, x + 9\right )} \arctan \left (\frac{1}{23} \, \sqrt{23}{\left (4 \, x - 1\right )}\right ) + 40329281 \, x^{2} + 10037775 \,{\left (4 \, x^{4} - 4 \, x^{3} + 13 \, x^{2} - 6 \, x + 9\right )} \log \left (2 \, x^{2} - x + 3\right ) - 12446818 \, x + 82485337}{389344 \,{\left (4 \, x^{4} - 4 \, x^{3} + 13 \, x^{2} - 6 \, x + 9\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.300081, size = 82, normalized size = 0.98 \begin{align*} \frac{125 x}{8} - \frac{1552188 x^{3} - 3340447 x^{2} + 2921666 x - 3586319}{67712 x^{4} - 67712 x^{3} + 220064 x^{2} - 101568 x + 152352} + \frac{825 \log{\left (x^{2} - \frac{x}{2} + \frac{3}{2} \right )}}{32} - \frac{165099 \sqrt{23} \operatorname{atan}{\left (\frac{4 \sqrt{23} x}{23} - \frac{\sqrt{23}}{23} \right )}}{194672} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13062, size = 84, normalized size = 1. \begin{align*} -\frac{165099}{194672} \, \sqrt{23} \arctan \left (\frac{1}{23} \, \sqrt{23}{\left (4 \, x - 1\right )}\right ) + \frac{125}{8} \, x - \frac{121 \,{\left (12828 \, x^{3} - 27607 \, x^{2} + 24146 \, x - 29639\right )}}{16928 \,{\left (2 \, x^{2} - x + 3\right )}^{2}} + \frac{825}{32} \, \log \left (2 \, x^{2} - x + 3\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]